package com.ruoyi.erecord.iot.service;

import com.ruoyi.erecord.iot.mapper.CommonMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Slf4j
@Service
public class CommonService {
    @Resource
    CommonMapper mapper;

    @Async
    public void gpsDataFill() {
        log.info("=========fill data ok");
        mapper.gpsDataFill();

    }

    @Async
    public void gpsDataRepeatDel() {
        mapper.gpsDataRepeatDel();
        log.info("=========deleteRepeat ok");
    }

    @Async
    public void stateDataFill() {
        log.info("=========fill data ok");
        mapper.stateDataFill();
    }

}
